﻿using System;

namespace HslCommunication.Core.IMessage
{
	/// <summary>
	/// 通用电气公司的SRIP协议的消息
	/// </summary>
	// Token: 0x02000157 RID: 343
	public class GeSRTPMessage : INetMessage
	{
		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ProtocolHeadBytesLength" />
		// Token: 0x170005DB RID: 1499
		// (get) Token: 0x06001D37 RID: 7479 RVA: 0x0008CFAE File Offset: 0x0008B1AE
		public int ProtocolHeadBytesLength
		{
			get
			{
				return 56;
			}
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetContentLengthByHeadBytes" />
		// Token: 0x06001D38 RID: 7480 RVA: 0x0008D327 File Offset: 0x0008B527
		public int GetContentLengthByHeadBytes()
		{
			return (int)this.HeadBytes[4] + (int)this.HeadBytes[5] * 256;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.CheckHeadBytesLegal(System.Byte[])" />
		// Token: 0x06001D39 RID: 7481 RVA: 0x0008CD5E File Offset: 0x0008AF5E
		public bool CheckHeadBytesLegal(byte[] token)
		{
			return true;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetHeadBytesIdentity" />
		// Token: 0x06001D3A RID: 7482 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetHeadBytesIdentity()
		{
			return 0;
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.HeadBytes" />
		// Token: 0x170005DC RID: 1500
		// (get) Token: 0x06001D3B RID: 7483 RVA: 0x0008D340 File Offset: 0x0008B540
		// (set) Token: 0x06001D3C RID: 7484 RVA: 0x0008D348 File Offset: 0x0008B548
		public byte[] HeadBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ContentBytes" />
		// Token: 0x170005DD RID: 1501
		// (get) Token: 0x06001D3D RID: 7485 RVA: 0x0008D351 File Offset: 0x0008B551
		// (set) Token: 0x06001D3E RID: 7486 RVA: 0x0008D359 File Offset: 0x0008B559
		public byte[] ContentBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.SendBytes" />
		// Token: 0x170005DE RID: 1502
		// (get) Token: 0x06001D3F RID: 7487 RVA: 0x0008D362 File Offset: 0x0008B562
		// (set) Token: 0x06001D40 RID: 7488 RVA: 0x0008D36A File Offset: 0x0008B56A
		public byte[] SendBytes { get; set; }
	}
}
